package com.zy.design.pattern.adapter.comb;
import	java.util.HashMap;

import java.util.Map;

/**
 * @author zhaoyi
 * @date 2021/4/14 16:55
 * 模拟minio提供的文件操作
 */
public class MinioFile {

    private Map<String,byte[]> map = new HashMap<> ();

    public void upFile(byte[] data,String path) {
        System.out.println("minio 上传数据到" + path);
        map.put(path,data);
    }

    public byte[]  getFile(String path) {
        System.out.println("minio 下载数据" + path);
        return map.get(path);
    }

}
